/**
 * Choicesoft.com.cn Inc.
 * Copyright (c) 2004-2018 All Rights Reserved.
 */
package com.test.springboot;

import org.springframework.kafka.annotation.KafkaListener;
import org.springframework.stereotype.Component;

/**
 * @author chenxubing
 * @version $Id: Receiver.java, v 0.1 2018-11-08 9:24 AM chenxubing Exp $$
 */
@Component
public class Receiver {
    @KafkaListener(topics = "${spring.kafka.consumer.topic}")
    public void receive(String msg) {
        System.err.println("receive:" + msg);
    }
}
